package com.authine.cloudpivot.ext.Enum;

public enum TradeOrderGoodsStatus {
    /**
     * 订单商品状态
     */
//    ALL("全部"),
//    NEW("新建"),
//    SUBMIT("待付款"),
//    PAYED("待出库"),
//    PACKAGING("待发货"),
//    DELIVERED("待收货"),
//    TO_RETURN("待退货"),
//    RETURNING("退货中"),
//    REFUNDING("退款中"),
//    RETIRED("已退货"),
//    MIDDLEMAN("客服已介入"),//未用
//    DONE("已完成"),
//    CLOSED("已关闭"),
//    REFUND_APPLICATION("退款申请中"),
//    RETURNED("已退款"),
//    TO_REFUND("待退款");//未用
    UpcomingPayment("未付款"),
    UpcomingConfirm("未接单"),
    UpcomingDelivery("未发货"),
    DoneDelivery("已发货"),
    DONE("订单已完成"),
    CLOSED("订单已关闭"),
    Approving("审批中"),//审批中暂未使用，被拆成待客服审批、待供应商审批、待财务确认
    ReturnPending("未退货"),
    ReturnedDoneDelivery("已发退货"),
    PendingMiddlemanConfirm("待客服审批"),
    PendingVendorConfirm("待供应商审批"),
    PendingFinanceConfirm("待财务确认"),
    Done("售后已完成"),
    Closed("售后已关闭");
    public String des;

    public static TradeOrderGoodsStatus get(String name) {

        for (TradeOrderGoodsStatus c : TradeOrderGoodsStatus.values()) {
            if (c.name().equals(name)) {
                return c;
            }
        }
        return null;
    }


    TradeOrderGoodsStatus(String des) {
        this.des = des;
    }
}

